package day5;

import java.util.Arrays;
import java.util.Scanner;

import org.junit.Test;

public class Demo {

	@Test
	public void test1() {
		// The value of the local variable num is not used
		int num = 3;
		// java.lang.String 在java.lang包下面的类不需要导包
		String string = "abc";
		
		// Scanner cannot be resolved to a type
		// Ctrl+Shift+o
		Scanner scanner = new Scanner(System.in);
		
		int[] array = {40, 17, 21, 1};
		Arrays.sort(array);
		System.out.println(Arrays.toString(array));
		for (int i = 0; i < array.length; i++) {
			System.out.println(array[i]);
		}
	}
	
	
	
	
}
